package com.sxg.convert;

import com.sxg.entity.SxgCategoryEntity;
import com.sxg.vo.SxgCategoryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 商品分类
*
* @author 浪漫写尽歌谱 3298751420@qq.com
* @since 1.0.0 2024-03-07
*/
@Mapper
public interface SxgCategoryConvert {
    SxgCategoryConvert INSTANCE = Mappers.getMapper(SxgCategoryConvert.class);

    SxgCategoryEntity convert(SxgCategoryVO vo);

    SxgCategoryVO convert(SxgCategoryEntity entity);

    List<SxgCategoryVO> convertList(List<SxgCategoryEntity> list);

}